#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>
#include <QNetworkProxy>
#include <QPalette>

#include "managerop.h"
#include "hr.h"
#include "query.h"
#include "register.h"
#include "add.h"
#include "selectstaff.h"
#include <QResizeEvent>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT
private:
    QTcpSocket* socket;
    ManagerOP* mymanager;
    HR* myhr;
    Query* myquery;
    Register* myregister;
    Add* myadd;
    SelectStaff* staff_all_info;
protected:
//    void resizeEvent(QResizeEvent *event) override
//    {

//    }
public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
public:
    void connect_signals_slots();
    void create_obj();
private:
    Ui::Widget *ui;
signals:

private slots:
    void on_login_btn_clicked();
    void on_quit_btn_clicked();
    void on_connect_btn_clicked();
};
#endif // WIDGET_H
